# 运行阶段 - 只部署已编译的JAR包
FROM eclipse-temurin:17-jre-alpine
WORKDIR /app
# 假设已编译的JAR包位于target目录
COPY ./target/*.jar app.jar
EXPOSE 8080
CMD ["java", "-jar", "app.jar"]